<h1>Editing blog</h1>

<%= error_messages_for :blog %>

<% form_for(:blog, :url => blog_path(@user, @blog), :html => { :method => :put }) do |f| %>
  <p>
    <b>Title</b><br />
    <%= f.text_field :title %>
  </p>

  <p>
    <b>Updated at</b><br />
    <%= f.datetime_select :updated_at %>
  </p>

  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', blog_path(@user, @blog) %> |
<%= link_to 'Back', blogs_path(@user) %>
